<template>
  <div>
    <el-row :gutter="20">
      <el-col :span="24"
              class="table-box">
        <el-table :data="tableData"
                  :highlight-current-row="true"
                  border
                  height="576px"
                  :header-cell-style="{ background: '#f5f5f5' }">
          <el-table-column type="index"
                           label="序号"
                           sortable
                           width="100"
                           align="center"
                           show-overflow-tooltip>
          </el-table-column>
          <el-table-column prop="name"
                           label="名称"
                           align="center"
                           show-overflow-tooltip>
          </el-table-column>
          <el-table-column prop="model"
                           label="型号"
                           align="center"
                           show-overflow-tooltip>
          </el-table-column>
          <el-table-column prop="spec"
                           label="规格"
                           align="center"
                           show-overflow-tooltip>
          </el-table-column>
          <el-table-column prop="unit"
                           label="计量单位"
                           align="center"
                           show-overflow-tooltip>
          </el-table-column>
          <el-table-column prop="num"
                           label="数量"
                           align="center"
                           show-overflow-tooltip>
          </el-table-column>
        </el-table>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  props: {
    embInfoList: {
      type: Array,
      default: () => {
        return []
      }
    }
  },
  data () {
    return {
      tableData: [],
      total: 0,
      requestParam: {
        page: 1,
        page_size: 10,
        com_type: ''
      },
    }
  },
  methods: {
  },
  watch: {
    embInfoList (n, o) {
      this.tableData = n;
    }
  },
  created () {
    this.tableData = this.embInfoList;
  }
}
</script>

<style lang="scss" scoped>
</style>